package com.bus.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bus.mapper.ShiroMapper;

@Service("shiroService")
public class ShiroServiceImp implements ShiroService {

	@Autowired
	private ShiroMapper sm;
	
	public ShiroMapper getSm() {
		return sm;
	}

	public void setSm(ShiroMapper sm) {
		this.sm = sm;
	}
	

	@Override
	public String findPasswordByUserName(String userName) {
		// TODO Auto-generated method stub
		return sm.selectPasswordByUserName(userName);
	}

	@Override
	public List<String> findRolesByUserName(String userName) {
		// TODO Auto-generated method stub
		return sm.selectRolesByUserName(userName);
	}

	@Override
	public List<String> findPermissionByUserName(String userName) {
		// TODO Auto-generated method stub
		return sm.selectPermissionByUserName(userName);
	}

	

}
